# Copyright 2023 Leo <lipf160627@163.com>. All rights reserved.
# Use of this source code is governed by a MIT style
# license that can be found in the LICENSE file.

include scripts/make-rules/common.mk # make sure include common.mk at the first include line
# include scripts/make-rules/tools.mk
include scripts/make-rules/docker.mk
include scripts/make-rules/rust.mk
include scripts/make-rules/swagger.mk

# 放在首位，make的时候可以默认build
.PHONY: build
build:
	@$(MAKE) rust.build

.PHONY: docker-build
docker-build:
	@$(MAKE) docker.build

.PHONY: swagger-generate
swagger-generate:
	@$(MAKE) swagger.generate

.PHONY: swagger-serve
swagger-serve:
	@$(MAKE) swagger.serve

.PHONY: clean
clean:
	-@$(MAKE) rust.clean
	-@$(MAKE) docker.clean
	-@$(MAKE) swagger.clean
